<?php

class Acesso
{
	private $server = "localhost";
	private $username = "root";
	private $password = "";	
	public  static $instance;
	
	private function __construct()
	{	
		
	}

	public static function getConnection()
	{
		if(!isset(self::$instance))
		{
			self::$instance = mysql_connect($server,$username,$password);
		}else
		{
			return self::$instance;
		}
	}	
	
}

?>